package com.jd.ipservice;

import org.apache.commons.lang.builder.ToStringBuilder;



public class IpInfo {

    private String country;

    private String isp;

    private String province;

    private String city;
    
    private String countryEn;
    
    private String ispEn;
    
    private String provinceEn;
    
    private String cityEn;

    public IpInfo() {
    }

    public static IpInfo getOther() {
    	IpInfo ipInfo = new IpInfo();
    	ipInfo.setCountry(FAConstants.IP_OTHER);
    	ipInfo.setProvince(FAConstants.IP_OTHER);
    	ipInfo.setIsp(FAConstants.IP_OTHER);
    	ipInfo.setCity(FAConstants.IP_OTHER);
            
    	ipInfo.setCountryEn(FAConstants.OTHER);
    	ipInfo.setProvinceEn(FAConstants.OTHER);
    	ipInfo.setIspEn(FAConstants.OTHER);
    	ipInfo.setCityEn(FAConstants.OTHER);
    	return ipInfo;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getIsp() {
        return isp;
    }

    public void setIsp(String isp) {
        this.isp = isp;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

	public String getCountryEn() {
		return countryEn;
	}

	public void setCountryEn(String countryEn) {
		this.countryEn = countryEn;
	}

	public String getIspEn() {
		return ispEn;
	}

	public void setIspEn(String ispEn) {
		this.ispEn = ispEn;
	}

	public String getProvinceEn() {
		return provinceEn;
	}

	public void setProvinceEn(String provinceEn) {
		this.provinceEn = provinceEn;
	}

	public String getCityEn() {
		return cityEn;
	}

	public void setCityEn(String cityEn) {
		this.cityEn = cityEn;
	}
	
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
    
}